package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter
@Getter
public class ReceiptManagementQueryObj extends QueryObject{

    private String keyword;     //学员姓名

    //收款时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    private Long clazzId = -1L;     //班级
    private Integer auditStatus = -1;    //审核状态

    public String getKeyword(){
        return StringUtils.isEmpty(this.keyword)?null:this.keyword;
    }

}
